﻿
package extremefx.extensions {
	/**
	 * @author Marcelo Volmaro
	 * Indicates whether the specified String object is a null reference
	 * @param _pStr A String reference.
	 * @return true if the value parameter is a null reference or an empty string (""); otherwise, false. 
	 */
	public function isObjectEmpty(pObj:*):Boolean{
		if (pObj == undefined)
			return true;
	
		if (pObj is Object) {
			/*FDT_IGNORE*/
			for (var i:String in pObj) {return false;}
			/*FDT_IGNORE*/
			return true;
		}
		
		return false;
	}
}
